﻿using System.Web.Mvc;
using Alphadon.TimeStream.Domain;
using System.Diagnostics;
using System.Web.Security;
using Alphadon.TimeStream.Services.Membership;



namespace Alphadon.TimeStream.Ui.Web.Controllers
{
    public class UserManagerController : Controller
    {

        //private IMembershipService

        //
        // GET: /UserNamager/

        public ActionResult Index()
        {
            return View();
        }


        public ActionResult Add()
        {
            SystemUser user = new SystemUser();
            return View(user);
        }

        [HttpPost]
        public ActionResult Add(SystemUser user)
        {
            MembershipServices services = new MembershipServices();
            MembershipCreateStatus createStatus = services.CreateUser(user.UserName, user.Password, "");
            Trace.WriteLine(user.UserName);
            return View();
        }

    }
}
